package com.phillong.observer.jdk;

/**
 * @author zhangpeng
 */
public class JdkObserverTest {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();

        CurrentConditionsDisplay conditionsDisplay = new CurrentConditionsDisplay(weatherData);

        weatherData.setMeasurements(80,65,30.4f);
        weatherData.setMeasurements(82,50,31);
        weatherData.setMeasurements(86,43,32);
    }
}
